@echo off
chcp 65001 >nul

setlocal enabledelayedexpansion

set "SRC_ROOT=D:\BaiduSyncdisk\中软国际合作教学班"
set "DST_ROOT=D:\projects\asr_demo\videos"

if not exist "%DST_ROOT%" (
    mkdir "%DST_ROOT%"
)

echo Copying mp4 from "%SRC_ROOT%" to "%DST_ROOT%"...
for /R "%SRC_ROOT%" %%F in (*.mp4 *.MP4) do (
    echo Found: "%%F"
    copy /Y "%%F" "%DST_ROOT%\%%~nxF"
    if errorlevel 1 (
        echo Error copying "%%F"
    )
)

echo Copy all mp4 files complete.
pause
